﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Industry.Contracts.Core.Enums;

namespace ZhonTai.Industry.Contracts.Model.Entity
{
    public class FieldMetadata
    {
        public double Offset { get; }
        public string Topic { get; }
        public string GroupName { get; }
        public PLCDataTypeEnum DataType { get; }
        public bool IsKeyField { get; }

        public FieldMetadata(
            double offset,
            string topic,
            string groupName,
            PLCDataTypeEnum dataType,
            bool isKeyField)
        {
            Offset = offset;
            Topic = topic;
            GroupName = groupName;
            DataType = dataType;
            IsKeyField = isKeyField;
        }
    }
}